import { Map } from 'immutable'
import { Action, Actor } from 'iflux2';

export default class CountsActor extends Actor {

    defaultState() {
        return {
            counts: {
                all: 0,
                noReply: 0,
                isReply: 0
            }
        }
    }

    /**
     * 获取用户信息
     */
    @Action('message:counts')
    getCounts(state, counts) {
        return state.set('counts', counts);
    }

}